package com.ljx.client;

import com.ljx.R;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 李加喜
 * @date 2020/9/28 0028 10:22
 * @Email 1129071273@qq.com
 */
@Component
@FeignClient(name = "service-vod",fallback = VodInterfaceClient.class)
 public interface VodInterface {
    //调用模块的方法  删除小节的时候删除视频
    @DeleteMapping("/eduvod/video/delVdo/{id}")
    public R delVdo(@PathVariable("id") String id);
    //删除章节的时候删除视频
    @DeleteMapping("/eduvod/video/deletebatch")
    public R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
